import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        userPhoto: 'https://tse1-mm.cn.bing.net/th/id/R-C.d025271ce08f807d6e3d8ea73e8b0e44?rik=ZWay9LsDu1T%2fYg&riu=http%3a%2f%2fimg.crcz.com%2fallimg%2f202002%2f18%2f1582001192947559.jpg&ehk=d7j2GulwG0TPQSdWo6vjO84DDR09aManx2lC%2fHT%2bjx4%3d&risl=&pid=ImgRaw&r=0&sres=1&sresct=1' // 头像地址（默认值）
    },
    getters: {},
    mutations: {
        SET_USERPHOTO(state, value) {
            state.userPhoto = value
        }
    },
    actions: {},
    modules: {}
})